package org.vacoor.xqq.util;

import sun.misc.BASE64Encoder;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

/**
 * User: Administrator
 */
/**
 * One of the <b>fastest</b> ShiroBase64 encoder/decoder implementations. ShiroBase64
 * encoding is defined in RFC 2045.
 */
public class Base64Test {

    public static  void t() {
        StackTraceElement[] stackTrace = new Exception().getStackTrace();
        int idx = stackTrace.length > 1 ? 1 : 0;
        System.out.println(stackTrace[0].getClassName());
        System.out.println("org.vacoor.xqq.util.Base64Test.main(ShiroBase64.java:18)");

    }

    public static void main(String[] args) {
       long e = 0;
       long s = 0;
       String str = "The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog";

        s = System.currentTimeMillis();
        ShiroBase64.encode(str.getBytes());
        e = System.currentTimeMillis();
        System.out.println(e - s);

       System.out.println(Integer.toHexString(Short.MIN_VALUE));
        t();
    }

}